﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _3._6
{
    public class CarAuto : Vehicle
    {
        private string aircondition;
        private string cd;
        public override void accelarate(double value)
        {
            Console.WriteLine("汽车加速");
            this.speed += value;
        }
        public override void deaccelarate(double value)
        {
            Console.WriteLine("汽车减速");
            this.speed -= value;

        }
        public void printSpeed() {
            Console.WriteLine(speed);
        }
    }
}